fixed wrong number of cells in header and footer