fixing subtraction of sparse matrix