correct header lengths