fix bug with locale