diff --git a/DynamicModel.cc b/DynamicModel.cc
index 20f8eb2cb3711f1075a02ff20d451f9763c692f0..cf57bda7576d92bfecb2d43886b1b5569c20a7f3 100644
--- a/DynamicModel.cc
+++ b/DynamicModel.cc
@@ -1546,13 +1546,13 @@ DynamicModel::writeDynamicMFile(const string &dynamic_basename) const
 					<< "%                                          Dynare may prepend auxiliary equations, see M_.aux_vars" << endl
                     << "%   g1        [M_.endo_nbr by #dynamic variables] double    Jacobian matrix of the dynamic model equations;" << endl
                     << "%                                                           rows: equations in order of declaration" << endl
-                    << "%                                                           columns: variables in order stored in M_.lead_lag_incidence" << endl
+                    << "%                                                           columns: variables in order stored in M_.lead_lag_incidence followed by the ones in M_.exo_names" << endl
                     << "%   g2        [M_.endo_nbr by (#dynamic variables)^2] double   Hessian matrix of the dynamic model equations;" << endl
                     << "%                                                              rows: equations in order of declaration" << endl
-                    << "%                                                              columns: variables in order stored in M_.lead_lag_incidence" << endl
+                    << "%                                                              columns: variables in order stored in M_.lead_lag_incidence followed by the ones in M_.exo_names" << endl
                     << "%   g3        [M_.endo_nbr by (#dynamic variables)^3] double   Third order derivative matrix of the dynamic model equations;" << endl
                     << "%                                                              rows: equations in order of declaration" << endl
-                    << "%                                                              columns: variables in order stored in M_.lead_lag_incidence" << endl
+                    << "%                                                              columns: variables in order stored in M_.lead_lag_incidence followed by the ones in M_.exo_names" << endl
                     << "%" << endl
                     << "%" << endl                    
                     << "% Warning : this file is generated automatically by Dynare" << endl