Fixed bug in search_types where it wasn't filtering the searches when it
was looping through all the search_types