fixed locale compare bug