fixing locale bug