Minor bug fix to MPI version