Fixed MPI hanging bug (patched applied incorrectly with dbf610877dcd5383d8109fb124c595988ecc9d9d.