Fix variable names used to get access token