fix for LOGSTASH-2035 issue