fix search bar behavior on iOS 7