fixed a bug at pl_all_light_off and pl_all_lights_off