fix crash with get_tok_str() in skip()