Fix for sim/common hw_delete()/hw_tree_delete()