Created attachment 36804 [details] A demonstration of the described bug The XWPFNumbering.removeAbstractNum method removes by list index, while the documentation indicates that it removes by abstractNumId. The class does not ensure that the two are the same. Demonstration file attached.
Fixed via r1872187, the method now iterates over the available numbers and removes the first one where the abstractNumId matches. Thanks for the report.