diff --git a/ModFile.cc b/ModFile.cc
index 134d9982089a57a9609de8b16db1bf9262fd48b9..52f7f856aee6f207fdd574978fd3f361694bd5cd 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -217,7 +217,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
       it != statements.end(); it++)
     (*it)->writeOutput(mOutputFile, basename);
 
-  mOutputFile << "save('" << basename << "_results.mat', 'oo_');" << endl;
+  mOutputFile << "save('" << basename << "_results.mat', 'oo_', 'M_');" << endl;
   mOutputFile << "diary off" << endl;
   mOutputFile << "rmpath " << basename << ";\n";