Fixed an error caused by a problem in getting tokens from the token list.