fix sparse matrix conversion