fix elasticsearch endpoint