fix elasticsearch elector