fix opencv iter