fix caching search bug