fix tree panel bug