Fixed a problem in locale