Sentence:  There was a divine justice in one wrong thus <WSD>undoing</WSD> another . 
Meaning of the word marked with <WSD> tags:  cancel, annul, or reverse an action or its effect