Quick fix to the ElasticSearch writer.