Changing exchange rates on received payments

SUGGESTED

I have an invoice that was posted in May 2019 to be paid later. It was posted in US dollars with and exchange rate to Canadian at that time. When payments are received and a new exchange rate is posted in the payment, the original exchange rate still applies. How can I fix this?