fix bug in elastic search - setting of values