Fix orientation changes on iOS 8.