fix a bug when pass the patients to run