fix crash in lamps