Fixed a DocumentSelection.DisposeSelection error.