fixed procrustes bug