Mesh completely distorted when assigning animation

This is my setup. Legs are working fine, but the same logic is not working for the hands. I presume is something outside the retargeting options, but still not sure what.

e2366b20205821c6efc00535fed5d3a87172d617.jpeg