Fixes crashes related to UIAlertView.