Fix bug in loading all rows.