Fix SVD input and data loading bugs