fix iterating off the end in situations where the neighbor == overlapEnd for out-of-core impl