If you have the source and target lines occupying the same location for any length, rules that connect between these two lines will fail to work. Also rules that connect to or from the area where the two lines overlap will also fail. The solution is to break one of the lines at the end points of the overlapping area and to remove the overlapping segment(s).
The video shows the problems and the solutions