fix bugs in backscheduling workflow orders
and one weird bug in process output logging