Fixed the total stress tensor for parallel computations.