fix bug when upgrade header has data