fix if statement in SingleBulbPhotonBeam