Fix removal of index at updateIndexes.