fix: crash, when setToken not eat the last char