fixed locale problem on linux