How to Rotate in right direction when moving with MoveToLocation?

It should work, but it doesn’t work completely. It does some weird rotations while moving. I’ll provide a video when i can to clarify the problem.