Fixed different locale bug