fix for header length