Fix PCA so that it does not account for features with zero variance