Fix iterate method.