Minor fix for header parsing