fix tree builder£