fix tree drawing