Added reindexing after edit.