Fixed bug in Tree widget.