Fixed minor url checking bug