fixed bug when we have two children hanging from the same node