correct the judge of token