fix UIAlertController crash for iPad