Fix loop delete