Fix chained .filter() on Permission.program_by_perm()