Fix a bug that token is not used.