fixed mpi rank distribution