diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc
index c09f25b9b2ce880c772a21c800e279ffcf48309c..714255b1d71298ca2ee5c57dba9cba1a74f0b951 100644
--- a/preprocessor/ExprNode.cc
+++ b/preprocessor/ExprNode.cc
@@ -602,8 +602,8 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
   if (IS_LATEX(output_type))
     {
       if (output_type == oLatexDynamicSteadyStateOperator)
-        output << "\\bar{";
-      output << datatree.symbol_table.getTeXName(symb_id);
+        output << "\\bar";
+      output << "{" << datatree.symbol_table.getTeXName(symb_id);
       if (output_type == oLatexDynamicModel
           && (type == eEndogenous || type == eExogenous || type == eExogenousDet || type == eModelLocalVariable || type == eTrend || type == eLogTrend))
         {
@@ -616,8 +616,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
             }
           output << "}";
         }
-      else if (output_type == oLatexDynamicSteadyStateOperator)
-        output << "}";
+      output << "}";
       return;
     }