Fixed view orientation issues.