Fixed bug in process_all()