dimmer bug fixes