fix for iOS 8 landscape bug