fixed a bug on es_host config.