Quick fix: order of permutations