- Fixed header row selector

- Fixed parsing of header row. Previously some table headers were not
being correctly selected.