fix iterating results