Bugfixes related to trying multiple curl requests if the first one fails