Fix elasticsearch connection issue