Fixed double logging