This PR fixes a backwards compatibility bug when reading data for which the index overlaps with the end of the range.
The same problem can be found in the updates but there the fix is much more involved as changing the intersection calculation breaks other assumptions.