Fixed bug with search patient.