Fixes invalid access at pca.c:180