[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:

81ce011310e4d590380ff98898471cf0b3bddaf8.jpeg

d21061f20d699aa25d5912ee2f0ad3acd7b0d48f.jpeg

0fd15e6b7553951740c455f88a2b2ed9a4515e97.jpeg

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.