bug fix when checking URL
bug fix when checking URL