schema compile OPTIMIZE nodeid dict-based comparison
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index 2723716..a141286 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -4040,7 +4040,7 @@
         }
 
         LOGVAL(ctx->ctx, LYVE_REFERENCE, "Augment target node \"%s\" in grouping \"%s\" was not found.",
-                ((struct lysc_augment *)ctx->uses_augs.objs[i])->nodeid->expr, grp->name);
+                ((struct lysc_augment *)ctx->uses_augs.objs[i])->nodeid->str, grp->name);
         rc = LY_ENOTFOUND;
     }
     LY_CHECK_GOTO(rc, cleanup);
@@ -4053,7 +4053,7 @@
         }
 
         LOGVAL(ctx->ctx, LYVE_REFERENCE, "Refine(s) target node \"%s\" in grouping \"%s\" was not found.",
-                ((struct lysc_refine *)ctx->uses_rfns.objs[i])->nodeid->expr, grp->name);
+                ((struct lysc_refine *)ctx->uses_rfns.objs[i])->nodeid->str, grp->name);
         rc = LY_ENOTFOUND;
     }
     LY_CHECK_GOTO(rc, cleanup);