small fix for elasticsearch state