fix mp bug