diff --git a/src/DynamicModel.hh b/src/DynamicModel.hh
index ddd991fedcf871574ba4789300ab44b54c888551..482e8c2bdd6d27fc060714984857960554d5e01f 100644
--- a/src/DynamicModel.hh
+++ b/src/DynamicModel.hh
@@ -366,7 +366,7 @@ public:
   void writeParamsDerivativesFile(const string &basename, bool julia) const;
 
   //! Writes file containing coordinates of non-zero elements in the Jacobian
-  /*! Used by the perfect_foresight_stacked_jacobian MEX */
+  /*! Used by the perfect_foresight_problem MEX */
   void writeDynamicJacobianNonZeroElts(const string &basename) const;
 
   //! Converts to nonlinear model (only the equations)