Fix logging.