Fix interlaced header generation