correct save new document issue