fix bug: tree