Fix dimmer state bug