another attempt on fixing permutation counts