Fixing URL checking