fix

The header function stops working when logic like that is used inside
it. At least, it was doing weird stuff on my test server. *fixed*