Fixed calculation of internal energy.