fix bug in addheader for pet-266