Fixed wrong logging.