fix search caching bug