fixed potential reentrant iterator invalidation, int node layers