Tree simplifier fix.