Minor fix in stats collection.