Fix bug with new header function.