fixed destroy delete for hierachy and don't allow setId