fixed PCA bug
bugfix in cross validation