fix bug in permutational alignment

I introduced it in a recent commit