fix orientation bug on iPad iOS 8