Fixing small error in checking URLs.