fixing a bug where somtimes the row-number was -8