Fixed - hopefully - the api calls