Bug fixes for generalized svd