fix MP bug