fix rows to rows.rowcount