BUG: Doc_id extracted incorrectly