How do I prevent lamps from glitching?