fix locale error when current locale is nor default