small bug fix in setting of locale