Fixed logging glitch