Ragdoll constraint orientation incorrect

There are video to show that the constraint orientation is not correct even I rotate it to the specific orientation on both swing or twist motion. The character is created from blender 2.8, I know there are bone axis different with unreal 4 default skeleton, maybe this is the cause the constraint bug? Any idea can fix it?

constraint setup:

Look at my ragdoll-template. I hope it will helps you a bit.

LINK:

I have the same problem, have you ever solved this problem?