fixed patientlist sortof