Fixes bug with clipping DateRanges