Corrects incorrect calls to ViewportRanges.setEndSeq()