Fixed crashing on high dim by changing to scipy svd