Fix crash on weapon fire