Fix Bugs with delete tree
Fix Bugs with delete tree