fix for light turn off behavior