diff --git a/src/ExprNode.cc b/src/ExprNode.cc
index b01bd5ba16b043e4816542f56ec8defc44da0ffe..4c76b5376882f14c0dc0c8421d940c4e71174a5f 100644
--- a/src/ExprNode.cc
+++ b/src/ExprNode.cc
@@ -979,7 +979,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
         output << R"(\bar)";
       output << "{" << datatree.symbol_table.getTeXName(symb_id) << "}";
       if (output_type == ExprNodeOutputType::latexDynamicModel
-          && (type == SymbolType::endogenous || type == SymbolType::exogenous || type == SymbolType::exogenousDet || type == SymbolType::modelLocalVariable || type == SymbolType::trend || type == SymbolType::logTrend))
+          && (type == SymbolType::endogenous || type == SymbolType::exogenous || type == SymbolType::exogenousDet || type == SymbolType::trend || type == SymbolType::logTrend))
         {
           output << "_{t";
           if (lag != 0)