Bugfix to API Connection