fix tree editor glitch