Fix problems in scantwoF permutations