fix regression which does not save locale