Perhaps when the second admendment was written , it should have stipulated that the government could not forbid the population from arming itself as well as the government itself.
This might have sounded silly at the time , the public owned more firepower than the governmment back then. This hasn't been true since 1865.