Fixed problem when number of headers is different number of columns.