fix check node depth, node.parent.parent evaluation