fix bug with incremental tree reading