Fixing bug in wget controller that prevents downloads when more than one endpoint is available.