Fix selection of tokens.