Fix how joined documents are saved.