Corrected layout for header and footer with memoir class