fix header access