ProducerAgent: fixed bug of generating wrong processes