Fix broken indexing in headerLines #274