Fixed bug with outer headings and row.index