fixed headerclear conidtional