fix bug with all null values in column