Fix header KeyError in reports.