Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
During the tick just after you've built a rampart, its hitsMax is set to 1. In subsequent ticks it seems to work as intended.