Geodesic curve out of surface. Bug?

Dear Tech Support/forum

It happens sometimes that drawing a geodesic curve on a surface between two points on it, the geodesic output is outside the surface domain. It’s easy to see that the geodesic path begins oposite direction from the starting point to the end point instead of towards it.

It seems to be a bug.

geodesic bug.3dm (204.0 KB)
geodesic (9.1 KB)