Fix global headerBuf