elasticlog code bug fix