Fixed a logging error.