AP Cancellation of wrong invoice

AP did an AP invoice cancellation of the wrong invoice. They also did a DM to clear the invoice that they cancelled. Now we have a Cancellation DM that we need to apply but we can’t because the invoice that it cancelled is closed. Any help on how to clear the Cancellation DM?

image