Fix header autohiding not syncing correctly.