I think this is happening because you have already posted invoice (MIRO) with old vendor master information and now you are trying to post outgoing payment with a different vendor master information.
Can you test the same with a fresh new invoice (MIRO) document, see is it working fine ?