Fix locale reset