diff --git a/packages/idyll-document/src/utils/index.js b/packages/idyll-document/src/utils/index.js
index <HASH>..<HASH> 100644
--- a/packages/idyll-document/src/utils/index.js
+++ b/packages/idyll-document/src/utils/index.js
@@ -55,9 +55,9 @@ const evalExpression = (acc, expr) => {
                 delete v.domNode;
               })
               // add `refs` const object graph to function scope
-              return `const ${key} = JSON.parse('${JSON.stringify(acc[key])}')`;
+              return `var ${key} = JSON.parse('${JSON.stringify(acc[key])}')`;
             }
-            return `const ${key} = ${acc[key]};`;
+            return `var ${key} = ${acc[key]};`;
           })
           .join('\n')
       }
Don't create consts in expressions because sometimes they're reassigned