fixed a bug in the all_lights commands