permutation fix