fixing search cancel bug in ios 7