mmm.f90 bug fixes