fix header detection heuristics