Fixed bug in the brightness dialog