Small fix to the header parsing