Fixing Offset after Animation Retargeting

Hi everyone,
There’s an animation that’s giving me some problems.

Before retargeting, it’s perfect. But after I retarget it, it has a strange offset.
NON-RETARGETED:

RETARGETED:

But it isn’t just about the initial offset.

During the retargeted animation, the character gets above the ground.
ezgif-5-8c44598e5f

Consider that I’m using the same skeleton retargeting setting on both the mannequin and the mesh with the original animation:

By the way, this is the only animation that has given me this problem.

Any idea on how to fix this?

Posting the answer here that worked for me and that I found in another thread, there were two different solutions one worked for me the other worked for others:

Quick Image Answer: