fix header and footer modification