Fix permutations