code cleanup, fix the stats data array, should be always +1