elastic search bug fix