fix caching bug with search query limits