Fix stack overflow in arc lamp code.