Worked on ElasticSearch bug in code, not sure how to fix it :)