Fix the search by type