Logging fix