Fixed addition of rows to input rows.