Fixes bug where ha_enabled was detected as false when set true