Fix header footer issue.