Disputed invoice with no "d" alongside it when get partially paid

When invoice is placed in dispute, normally "d" appears alongside it, however for some my customers and suppliers it disappear when invoice is partially paid. It should show "dp" , however it only shows "p". When I go to disputes, the reason is there.

How do I fix it?