diff --git a/preprocessor/DynamicModel.cc b/preprocessor/DynamicModel.cc
index 32e3f38412964f15dc8ec49fc3f1d678e4088639..cccaa50494d9ce667d3543255c0ccb386c0a73b2 100644
--- a/preprocessor/DynamicModel.cc
+++ b/preprocessor/DynamicModel.cc
@@ -1527,7 +1527,7 @@ DynamicModel::writeDynamicMFile(const string &dynamic_basename) const
       cerr << "Error: Can't open file " << filename << " for writing" << endl;
       exit(EXIT_FAILURE);
     }
-  mDynamicModelFile << "function [residual, g1, g2, g3] = " << dynamic_basename << "(y, x, params, steady_state, it_)" << endl
+  mDynamicModelFile << "function [residual, g1, g2, g3] = " << dynamic_basename << "(y, x, params, steady_state, steady_state_x, it_)" << endl
                     << "%" << endl
                     << "% Status : Computes dynamic model for Dynare" << endl
                     << "%" << endl
diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc
index 4d723fa7ef38a4cbca1aed654538fd6a21064ee6..55d7385e5c49358973172d90423825c47de92fed 100644
--- a/preprocessor/ExprNode.cc
+++ b/preprocessor/ExprNode.cc
@@ -769,10 +769,10 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
           break;
         case oMatlabOutsideModel:
           assert(lag == 0);
-          output <<  "oo_.exo_steady_state(" << i << ")";
+          output <<  "steady_state_x(" << i << ")";
           break;
         case oMatlabDynamicSteadyStateOperator:
-          output <<  "oo_.exo_steady_state(" << i << ")";
+          output <<  "steady_state_x(" << i << ")";
           break;
         case oJuliaSteadyStateFile:
         case oSteadyStateFile: