fix header popping