fixed bug for tree menu.