avoid dimming twice