fix bug in process independent_demand