assert on proper elem from do_pca, check failed