Bug fixed for MPI implementation.