Fixed a bug in language toggle