fixed document update.