Error loading an animation already made on a skinned mesh

Hello, i’m trying to load an old animation that i made on a model into the same model but skinned.
The problem is that it doesn’t loads correctly on some bones.
I have tried changing the bone names, adding the “Attach” bone(it’s irrelevant for the animation),

This is how it looks on the old rig:
The model of the old rig:

And this is how it looks on the skinned rig:
Skinned rig model: