fixes to incident.R