correcting locales errors