tree init
fix bug