fixing fetch_all