Extend curve

Why does the Extend tool transform the curve in this way, and how can it be fixed?

to which way are you referring? did you try to post an image? generally there are several types to choose from.