fix issue after selecting different locale on UI