fix: tree builder