Fixing a crash with repeated brightness set

Really need to add good logging soon