Fix mmi removal bug.
Merge pull request #821 from ESwordTheCat/3rvbI32a

Fix mmi removal bug.