Bug fix with multiple thread MPI calls.