Fix bug related to dialect