This keeps happening to me as well. I'm not sure if this will work for you, but here's how I fixed it personally:
1. Click one of the persons involved in the "ex-marriage."
2. Click "Add partner/ex."
3. The topmost button should read something like, "Set partner to ___." Click that.
Hope this helps!