fixed an issue where access token wouldn't be added properly