Correctly get token id.