fix fetch_records line slice