How to fix this crazy spinning mesh?

character movement for flying on navmesh