Update header size calculation