Fix locale initialization