Fix parsing user's locale bug