scrape: fixed bug; fail index can be -1 if not found