fixed all the search problems.