isothermal math bug fixed