Fix bug in locales