fixed a bug, when updating host, indexes name are duplicate

If the configuration file of the two element‘s names are "web1", "web1-root", only one updated the other of which will also be modified.