fixed some bugs with treefam widget