fix language switch bug