fix forEachNode