fix iter loop