How to lock the horizontal axis of an animation ?

How to lock the horizontal axis of an animation ?
I use blend animations by bone. But the top part also move horizontally when te bottom part move.
image.