Fix headers not being checked