Fixed errors on cyclic reference when logging