bugfix header and footer