Correct wront row/column order of covariance matrices