schema compile BUGFIX process only new children
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index 30671d1..55feef7 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -3755,7 +3755,7 @@
 
     assert(child_set);
 
-    child_i = 0;
+    child_i = child_set->count;
     LY_LIST_FOR(child, pnode) {
         /* compile the nodes with their parsed (grouping) module */
         ctx->pmod = grp_mod;