Fixed a bug with the sizes of some internal MPI buffers