Fix a logging error