Fix child node detection