update alerts to handle missing or broken ids