Root bone wasn't rotated, but after import, animations were rotated and doesn't match loop

I made 9 animations in Blender and imported to Unity. It passed humanoid type configuration(used rigify).

All animations don’t moving root bone at all(root bone position/rotation/scale is locked), however when I imported my model into Unity and play the animation, some of them are rotated at certain angle, doesn’t look forward.

And one of my animation has really serious issue, when I play preview animation, each time animation ends it rotated permanently like clock bar ticking.

Also there are some issues that loop match of some options have red sign.

I read this doc:, so I tried to fix this manually by tweaking timeline, but change timeline were cut off my animations. How do I fix this without cutting off animation?

Used Blender 2.78b and Unity 2018.3.