Fix document data update