fixed dimension bug in pca_transform