tree layout fix