Handle a situation when the first point in a path is the same as the current position.

Also unmix lat and lon.