fix header resize on page click issue