I am quite certain it is the problem of your thumb resting on the slide release.
I had the same problem in my M&P, until I realised it is because of my thumb position.
To verify this, take all your empty mags and load it into the gun and rack the slide back. If it stays back, it most likely...