logging fix