Fixed up some logic in the header.