diff --git a/src/ComputingTasks.cc b/src/ComputingTasks.cc
index aa91e2ceeab689e9d9ecd85befe042669ad6a9cf..f389731126c13adc2a5352f8bfca61bf5607b756 100644
--- a/src/ComputingTasks.cc
+++ b/src/ComputingTasks.cc
@@ -4936,7 +4936,7 @@ MethodOfMomentsStatement::writeOutput(ostream &output, const string &basename, b
   symbol_list.writeOutput("var_list_", output);
   options_list.writeOutput(output, "options_mom_");
 
-  output << "[oo_, options_mom_, M_] = method_of_moments(bayestopt_, options_, oo_, estim_params_, M_, matched_moments_, options_mom_);" << endl;  
+  output << "[oo_, options_mom_, M_] = method_of_moments(bayestopt_, options_, oo_, estim_params_, M_, options_mom_);" << endl;  
 }
 
 void