Semi working pca with small transposing problem