Fixed problem with outer headings and row indexing