Fixed bad indexing in mpi comm