Updating index with the new shell (for migration).