fix search results for invalid entries