Tried fixing this issue. Made a custom dialect and made the above changes. It is working now. Please look into this.