Encumbrance amounts not getting relieved

Hi,

I am facing some issue with encumbrance amounts. There are two lines in the encumbrance amount with both having the same PO no. And as a result, an extra amount is being blocked because of the duplicate line.

Anyone have an idea how this can be rectified?

Also, a PO was cancelled but the encumbrance has not been relieved for that either.