fix check_url()