Fixed the url checking logic