Open correct (renamed) index on restore

Closes #5212