Fix locale preference storing