Removed unnecessary clones during search.