Fix how index name is generated to destroy index