Fix problem with SVD + add thresholding for sparsity