Fix crash on multiple section without header or footer