Small fix in produce()