Fixes bug in pca related to noise variance computation