Fix pca, pca_project, and data loading bugs