Fixed the creation of the expand icon when the index of the column with the expand icon is greater than the number of visible columns.