Improve accuracy for detecting intersections