Tree error reporting fix

small but crucial fix to how we compute per tree errors.