Repaired consistency problem for header and footer