fix automatic removal of alerts