fixed iter bug