When you save a GIF in GIMP, you're given the option to use cumulative layers (combine) or one frame per layer (replace).
Choosing cumulative layers causes the GIF's layers to only contain the pixels that changed since the last frame.
Choosing one frame per layer causes each of the GIF's layers to save all of its pixels, not relying on any of the pixels from the last frame.
If a GIF has been previously saved with cumulative layers, and I delete the first few frames, it messes up the rest of the GIF because the later frames were relying on the (now deleted) color information from the first frames.
Here's an example:
Original:
After deleting the first two frames:
How can I save the modified GIF so that it looks correct?