Patch for lines overlapping