fixes bug entering texts with UIAlertView and iOS 7