This fixes regtests but for the pca