fixed some bugs at bri and dim commands