fix some locale problem