Fix off-by-one error in OrURLs logic