fix for setLocale