fix issue with headers and footers height.