fixed bug with locale