Fixes a bug with prepackaged layouts when number of sections is 0