fix bug with document UIDocumentSaveForCreating