fix elastic search bug