Fix bug #14073 with referencing window total number of columns.