Help! After the end of the walking animation character is dragged back. How to fix it?

root motion does not work in any case. For example I had a rolling animation which looks kinda funny with root motion.