Fixed SVD calculation