fix posible endless loop in CorrectRelativeUrls
resources stuff