Fix a wrong check in lamp, spotted by DerPapst