bugfix in updating an edge document.