fix language switch error