fix header is not reseted issue