Fix duplicate ID in document.