fix changeBrightness check; fix setPropBrightness check