fixes for header/footer even/odd setting