Fix putting data to ES.