fix header errors