Fix double logging