bug fixing LocaleHelper