fixed minor bugs that prevented getting back an access token.