fix tree positioning