Corrected issue #304 (glass energy balance).