Cloning dynamically created GUI nodes with no ids – using next()

node_tree[hash(“root_node”)] returns nil in my case.
The problem is, my nodes are created dynamically with no ids.