Shorth Path

I am using shorthpath and when I have a surface that is spatially overlapping the edge, Rhino will build a very strange solution. Is this a bug or I am doing something wrong?

Hello - please post and example file with the start and end points indicated.

-Pascal