Duplicate entry on batch entry page, returns invalid rows

Duplicate entry on batch entry page, returns invalid rows

Sometimes "When duplicate entry is inputted into the batch entry, the page returns rows with the row shifted and the row number in the first cell.