fixed bug that excluded ancestral nodes