Fixed a minor bug where token value is not returned.