fix mpc trap