fix missing tree definition
Fix Integral bug with high thresholds