fix bug in order.all_processes