Fixes iOS 7 bug related to UISearchBar.