Fix rotation in iOS 7.0.6