fixed ancestral node error