Re targeting issues?

Hey guys, so Ive been playing with the new IK rigging system and think its great however I seem to be having issues with my animation after retargeting. In the preview it looks correct but asoon as I export the animation it doesnt work as intended and my character ends up flat on the ground. Can anyone explain to me what im doing wrong?