Bug fix when there are no URLs to replace