Trouble changing slide master

Here is my situation. I’m basically taking a Presentation and breaking it apart and removing any special master formatting. Here is my method for doing this. Feel free to suggest a better method.

Open an existing Presentation
Create a blank Presentation
Clone slide from existing into blank
Change style of slide I just cloned
Remove the blank slide and the second (formatted) master
Save the new Presentation to disk.

Presentation srcPres = new Presentation(“c:\source.ppt”);

for (int ii = 1; ii <= srcPres.Slides.LastSlidePosition; ii++)
{
string sFileName = ii.ToString(“00000”);

string sPath = “c:\” + sFileName;

Presentation newPres = new Presentation();

srcPres.CloneSlide(srcPres.GetSlideByPosition(ii), 2, newPres, new SortedList());

newPres.GetSlideByPosition(2).ChangeMaster(newPres.Masters[0], true);

newPres.Slides.Remove(newPres.GetSlideByPosition(1));

newPres.Masters.Remove(newPres.Masters[1]);

newPres.Write(sPath + “.ppt”);
}

This works for most situations except for a slide that contains unfilled textboxes - the ones that say “click to…”. In that case the code writes the file but I can’t re-read the file later on, it shows a “PptReadException” the inner exception is a null reference exception.
In the attached example I can’t read 00002.ppt.

Any Ideas?

Also if it’s not to much trouble:
Is there a difference in how CloneSlide is called?
Source.CloneSlide(Source.GetSlideByPosition(1), 1, Destination, new SortedList());
Destination.CloneSlide(Source.GetSlideByPosition(1), 1, Destination, new SortedList());

Thanks
JP

There are two thing you should know:
1. You should never change text in the standard Master’s text boxes like “Click to…”.
2. Also you shouldn’t delete any masters from a presentation. If it too large you can just remove all PictureFrames from such slides. But removing any master can brake down whole ppt file. Master slides without images are very small so don’t touch it.