Logging fix4