Fix header height calculation