diff --git a/preprocessor/ModelTree.cc b/preprocessor/ModelTree.cc
index 02caafbebe9c4fdddbfc99892b1aced9f4536b3e..10fb02f7a0c1aa0b000df38015f734703047ccdc 100644
--- a/preprocessor/ModelTree.cc
+++ b/preprocessor/ModelTree.cc
@@ -1128,7 +1128,7 @@ ModelTree::writeTemporaryTerms(const temporary_terms_t &tt, ostream &output,
       if (IS_C(output_type))
         output << "double ";
       else if (IS_JULIA(output_type))
-        output << "  @inbounds ";
+        output << "  @inbounds const ";
 
       (*it)->writeOutput(output, output_type, tt, tef_terms);
       output << " = ";