structure FEATURE support for augment-structure
diff --git a/src/plugins_exts/metadata.c b/src/plugins_exts/metadata.c
index a2cbc83..32fbe7d 100644
--- a/src/plugins_exts/metadata.c
+++ b/src/plugins_exts/metadata.c
@@ -75,7 +75,7 @@
     if (!ann_pdata) {
         goto emem;
     }
-    LY_ARRAY_CREATE_GOTO(lyplg_extp_cur_pmod(pctx)->mod->ctx, ext->substmts, 6, r, emem);
+    LY_ARRAY_CREATE_GOTO(lyplg_ext_parse_get_cur_pmod(pctx)->mod->ctx, ext->substmts, 6, r, emem);
 
     LY_ARRAY_INCREMENT(ext->substmts);
     ext->substmts[0].stmt = LY_STMT_IF_FEATURE;