fixed bug for dialpad_permutation program