fixing check_url()