fix header checks