Fixed navigation issues related to rotating.