Fix document_changed