Fix bug in the search to avoid instances of fooit()