Fix change permutation generation