Fix attribute and column count.