fixed an svd bug with a square matrix