[Help]Import mocap in to UE4, why some bones direction are twisted?

I finally import mocap file into UE4 but some bones are twisted like below:




The animation is OK, not floating, not jumping around.

I tried retargeting, but not work.

The file type is FBX, anyone know how to fix this? (by blender or motion builder maybe?) Thx a lot.

Did anyone know how to solve this?

You need to import a mesh along with the rig so you can get the skeleton into UE4, then retarget.