Compatibility Fixes

Fixed a code typo, Fixed device rotation causing crashes on iOS 7 if
alert view is showing