Fix the reading of the document IDs with the new link format.