Fixes a bug with heat transfer.