Fix document update