fix DMM and MMM