fix dtree append problem