fixed permutation checker
Merge branch 'owenFixes'