Fix a logging issue