Fixing errors related to length of MPI_Groups