fixed copyDocument, so jumping in a copied document is independent of the
orignal document.