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