Fix console logging.