a bug fixed: if tree is just a value