Fix elasticsearch dependency