Fixed access token reset (issue #2522)