tree data BUGFIX meta values always use annotation context
diff --git a/src/tree_data_new.c b/src/tree_data_new.c
index 148562f..1e4875a 100644
--- a/src/tree_data_new.c
+++ b/src/tree_data_new.c
@@ -749,7 +749,7 @@
     LY_CHECK_ARG_RET(ctx, ctx || parent, name, module || strchr(name, ':'), parent || meta, LY_EINVAL);
     LY_CHECK_CTX_EQUAL_RET(ctx, parent ? LYD_CTX(parent) : NULL, module ? module->ctx : NULL, LY_EINVAL);
     if (!ctx) {
-        ctx = LYD_CTX(parent);
+        ctx = module ? module->ctx : LYD_CTX(parent);
     }
 
     if (parent && !parent->schema) {