fix missing locales initialization