Fixed the fatal error in the header and footer.