Fix iOS 8 orientation bug