Hello Fabien,
Just check the acounts usd, as when reversing, the accounts were changed by the substitution, so when you reverse the document, the account in the condition of substitution was different.
Please use Substitution Trance to check why the substitution is not applied.