Fixed the language switch logical bug.