fixes for invalid access_token
preventing code expiration bug