minor bug fix in patientSearch