fixed policy directory issues.