schema compile node BUGFIX do not overwrite found grp
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index fa0d2cd..9b1fb77 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -3741,7 +3741,7 @@
         }
 
         /* if in an extension, search possible groupings in it */
-        if (ctx->ext) {
+        if (!found && ctx->ext) {
             lyplg_ext_parsed_get_storage(ctx->ext, LY_STMT_GROUPING, sizeof ext_grp, (const void **)&ext_grp);
             if ((grp = match_grouping(ext_grp, name))) {
                 found = ctx->pmod;