Fix zero brightness bug