How to link amended sales invoice to sales order

Good day.
I have created and submitted an invoice from the sales order but later discover a mistake on where the revenue is reporting to so i have to cancel the invoice and amend.
On amending, the invoice refuse to save coming back with error message “Cannot link cancelled document: Row #1: Sales Order: TPCL-SO-2021-00011, Row #2: Sales Order: TPCL-SO-2021-00011, Row #3: Sales Order: TPCL-SO-2021-00011, Row #4: Sales Order: TPCL-SO-2021-00011”.
Kindly advise on how to link the amended invoice with the sales order.