Fix bug that only happens when thermostat needs to heat