fixed elasticsearch sanitization issues