Fix potential underflow issues with huge numbers of reads.