fixed mmm bug