Fix incorrect amount of iterations for delta function