Fixed problem with elasticsearch index creation