bugfixes to SVD