Fixed the way URL's are detected