Fixed issue with multiple URLs being set to the last