Bugfix in the nnzmax

The number of nonzeros was related to the number of
nonzeros in the original matrix.