Minor fixes that crop up when saving a new document