Fix for SparseLinear - need to add some tests