two fixes on locales