Fixed one little bug of MP.hpp.

add test