schema tree BUGFIX accessible tree fixes
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 104786c..47833ab 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -2039,7 +2039,7 @@
             }
 
             LY_CHECK_RET(parse_text_field(ctx, in, LYEXT_SUBSTMT_PATH, 0, &str_path, Y_STR_ARG, &type->exts));
-            ret = ly_path_parse(ctx->ctx, str_path, 0, LY_PATH_BEGIN_EITHER, LY_PATH_LREF_TRUE,
+            ret = ly_path_parse(ctx->ctx, NULL, str_path, 0, LY_PATH_BEGIN_EITHER, LY_PATH_LREF_TRUE,
                                 LY_PATH_PREFIX_OPTIONAL, LY_PATH_PRED_LEAFREF, &type->path);
             lydict_remove(ctx->ctx, str_path);
             LY_CHECK_RET(ret);