fix bogus iteration