fixed problems with weapon light code