On the minimal set for counterexamples to the local-global principle