Fix asserts in case of MPI.