Workaround for iOS 8 rotation