Fix header and footer.