Fix header resize issue