fixed add bug in tree, still another bug: cannot perform traversal after add