fixed mm bug