Fix crash when shooting