Try to:
Document should not change, all changes should be prevented before rendering. Selection may change.