Elasticsearch initial restart fix