Fix getter for id of linked documents