Fixing issues with SVD