fixed header/footer bug