bugfix in dissipation computaton