fix bug: not able to detect user locale