fix bug in getColSums