fix header bar disappear issue