Fix error on startup accessing API URLs.