Fixed logging issue.