2004 sportsman 500 cv axle

I recently had to replace my front right cv axle. The replacement was pretty simple. But the cv axle shaft isn’t staying locked into the diff. When you push it in you can feel the ring snapping into place and it’s tight and little movement. But everytime you drive it, the shaft comes out about 1/2" and you can move it in and out quite a bit but if you push it in you can feel it snap in. I tried using a rubber mallet because I thought maybe it wasn’t seated all the way. Has anyone had this expirence?