Fix fetching rows