bugfix for memory leak of recentSearches.