fix perm dir