Fixed a logging issue.