fixed backward compatibility issue with search in iOS 7