Fixed bug which involved multiplication of permutations in the wrong order...