[642] Fix error in generation of document list