fix bug of dimmer force close in transition