partial fix for permutation-pdf