fixed link bug in tree