Fixed missing header and footer on a main matter.