fix rotation for iOS7