fixing droping issue with sparse matricies