Fix double logging.