fixes number of columns when the user select a subset of fields