Fix getting locales