fix Two-argument "open" to tree

It is trivial fixes, but two-Argument "open" is not a good practice.