resize header bug fix