fix a logging error