Bug in deleting a pedigree fixed (when trying to delete a pedigree with circular references).