Fix saving of parameters.