diff --git a/Tag.cpp b/Tag.cpp
index 930f244..ecfe55d 100644
--- a/Tag.cpp
+++ b/Tag.cpp
@@ -205,7 +205,7 @@ namespace jet {
if(resolveContainerParent)
out.write(global.getVariable(in, parent->variables));
else
- out.write(global.getVariable(in, variables));
+ out.write(global.getVariable(in, local->variables));
} else {
out.write(in.nextChar());
}
diff --git a/tests/dump.txt b/tests/dump.txt
index 862f520..c757db5 100644
--- a/tests/dump.txt
+++ b/tests/dump.txt
@@ -17,9 +17,9 @@ noeval=[this is the value store in #[name1].]
nonexistant=[]
numbers=[0123456789]
subtraction=[2]
-testinclude=[xThis is a container set with ''x]
+testinclude=[]
theexpr=[bcd]
-thename=[this is the value store in .]
+thename=[this is the value store in localname.]
tohex=[tohex]
varname1=[vardata]
x=[]
@@ -27,3 +27,4 @@ x=[]
file=[./testinclude.jet]
localvar=[This is a container set with '']
name1=[]
+testinclude=[xThis is a container set with ''x]
diff --git a/tests/testinclude.jet b/tests/testinclude.jet
index 3870cac..2ac52ce 100644
--- a/tests/testinclude.jet
+++ b/tests/testinclude.jet
@@ -2,6 +2,6 @@
This is from an include tag.
localname='#[name1]'
-
+
test='$[testinclude]'
\ No newline at end of file