logging fix.