fixed logging issue.