Corrected mild bug in tree producer