fixed produce bug