Fix rotation on iOS 8