Corrected undefined index error = 1 for autosize columns and generate column header code segments