Fix a file saving bug and cleaner dirty state on documents