Fix looping in HVAC