Fix rotation in iOS 8