fix iteratorCallback bug