Fix failure in setnumcapabilities001 (#12728)