This is a pretty legitimate issue stemming from the representation of a sphere on a square map. When you get up on those polar flights, the map doesn't know how to draw the route and may bounce back and forth to draw the shortest line based on the aircraft's current location.
The only way to deal with it would be some kind of exception in the programming, but even that's hard to do because no two flights will ever fly the exact same path.