fix calls to heroku api