fixed the brightness bug