fixed pending callbacks issue with TokenCache