Fix setting locales