fix bug (tree buttons)