Yeah I was trying to fix that bug but unfortunately I couldn't
If you are working in unity, you can simply set the box collider attached to the gun to "trigger"
ok :)