fixed a bug where getlights ended early