Fix header scroll freeze building bug