Fix mmi removal bug.