Fix assert fail on near-overlaps