Fixed delete_policy bug