fixed dimming bug