Try:

doc.Save True, False

before the PutInFolder, to commit changes to the document.