fixed bug in tree for clear item