fix language switching