You may know this and it may not be the problem, but a lot of time when this happens is usually because the trigger is set very low and some part of your finger is hitting the trigger and releasing the sear before the safety is depressed all the way. I have done it myself multiple times and I am sure their are quite a few others on here that have as well.
Bookmarks