Third Person character "UpVector" problem

I’ve been trying to get my character to go from a walking mode to flying, which worked. The character moves good in all direction. I set up a MoveUp input so he can move up and down with 2 different buttons but when he goes up or down the character always turns to face the way he started on going up and towards the camera on going down.Does anyone know how to fix this? I used the templetes for movements and a flip flop for going to walking and flying mode.