Root motion z axis

Hi guys someone know how to fix the root motion z Axis
without changing the movement mode to fly?