Bugfix: increment row number when flushing end of file