Fixed bug- When no results are matched, it doesn't loop through all the contacts again