trietree bug fix.