fix EDOCUNCHANGED logic.