tighten cog, tighten lockring. Ride a little bit and then tighten your lockring AGAIN. If the cog continues to slip back and forth it can be bad for the threading and a multitude of other things. Make sure you have the correct tools for this or have a bike shop do it for you. Tightening by hand is not good enough