Fixed bug with header/footer size