fix url checking