Fixed critical bug in PermutationGMM.

The covariance matrix of the last trial was always used. This can have
devastating consequences.