PCA Works after a fashion but the dimensions are wrong