Fix getIndex row.