Fixd empty permutation case.