Fixed a logging error