fix storing locale selected by user