Fixed bugs in policies.