Fix bug in switching viewing and parallax modes.