bugfix for brightness
minor fixes