fix a bug in the new read_next_n_records()