Skeleton retargeting not working as expected

That might be, in this case the different skeletons use the same naming conventions so I have not had a problem with matching the bones.

I got it working now but what do I if the skeleton I want to retarget has more bones than the target?