whilst auto-documenting with alexv, found a bug. this is the fix.

I altered the call signature for save_processed_ids, but didn't
update all the cases where it's called.