fixed error during search patient