Fixed bug where enumeratePermutations() didn't hit all permutations.