[ftools] Fix basic statistics (Fix #8105)