fix elasticsearch connection