invalid ptr fix on access token destructor