fix bug in stat report