FX - Vendors Balance Restatement

There is a difference between aged accounts payable and Detail Trial Balance.

We found that against few invocies, even when the foreign currency balance was nil, the local currency balance was shown.

When drilled down, the difference was maily on account of FX on those transactions.

How to close those FX differences.