fix the alerts when spark does not save