Fix header line and footer line