Fixing the html logging issue