fix bug with column count calculation