Fixed a problem with directed tree node