Fixed access_token invalidation (issue #2211)