Fix bug in sim_do_pedigree