Fix "Document modified during update" message when fixing corrupt field code