Preserving active document.