fix bug: depth of resulting tree is less then 2.