Fix issue when deleting copy of rule