fix switching language issues