fix perm.c