Fix logging circular reference.