Correct nextOffset (off by one)