ensure 'next' sequence item populated correctly when there is a gap in the timeline