fix wrong iterator