fix sparse vector assignment from a sparse matrix