fix caching issue when changing locale