Fixed "reduce_sumtree()" code.