fix header removal problem