fix tree strcut