fix bug original sim_patient function