Removed the error that occurs when an alert view is presented