fixed language switching not checking for page in other language