fix tree layout