Okay, I've solved the problem. I checked out my math book and read that two segments with the same point intersect (i.e. 1;2 and 2;3). :shock:

That was my bad from the very beginning. ops: