fixed wrong loop iteration abort