fixed lastoverlap for middle disconnected overlapping nodes