fixes elasticsearch (to be tested)