The gun was working right?
You just didn't like where it was throwing the empties.
I would replace the spring w/the Armalite spring.
How many rounds through the gun?
It was locking back on an empty mag. Unless it's not feeding the next round what is the problem?