Animation to match moving speed

I have a running animation, its set at a perfect speed and runs great, but once it finishes it resets and goes back to the actual position where the npc currently is. I have messed around with slowing and speeding the npc's moving speed and I have tried to slow and fasten the animation speed and I can't get it right. I'm not sure what else I should do. What do yous recommend I do? Thanks

Sounds like you want to have the root/hips movement applied to the actual character position.

If this is a Mecanim figure, see http://docs.unity3d.com/Documentation/Manual/RootMotion.html - you want to apply root motion to XZ for most walking and running, and to Y for jumps, falls, climbing.