fix bug for token