Logging fix2