fix path header/footer