Extend don't work

the extend option does not recognize the intersection line and continues beyond