Added correct line cutting on intersection