header footer setNav bug fix