finish replace_policy