fix DocumentPointer