Fix weird overflow issue with header and footer