Fixed locale bug