fix token type not be setted bug