Use correct node index for each resource tree when retreiving children.