PermutationKeyGenerator fix