caught doc_id bug