fixed process-generation bug in ProducerAgent