fix kd iterations