Initialize prev_off to be U64_MAX, instead of 0
BUGFIX: not 'i', I meaned 'min_id'