Fix algorithm for collision detection of front lines with incoming edges