Fix the assert failure in header parse.