Fix mpi of npdm.